import requests from '../utils/request'

export function login(account, password) {
    return requests({
        url: '/member/login',
        method: 'post',
        data: JSON.stringify({
            memberNum: account,
            password: password
        })
    })
}

export function logout() {
    return requests({
        url: '/member/logout',
        method: 'post'
    })
}

export function changePassword(originPwd, newPwd) {
    return requests({
        url: '/member/changePassword',
        method: 'post',
        data: JSON.stringify({
            originPassword: originPwd,
            newPassword: newPwd
        })
    })
}